<%@page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<c:set value="0" var="tdNum" />
<section style="width:100%">
	<table width="100%" cellpadding="0" cellspacing="0">
		<tr>
			<c:if test="${!empty securityAccount && !empty securityAccount.resourceList}">
			<c:forEach var="resource1" items="${securityAccount.resourceList}">
				<c:if test="${resource1.resourceType == 1}">
				<c:forEach var="resource2" items="${resource1.resourceList}">
				<c:if test="${resource2.resourceType == 1 && resource2.resourceId == '44369'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList0" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=0')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">${resource2.resourceName}</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
			    <c:if test="${resource2.resourceType == 1 && resource2.resourceId == '49533'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList-1" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=-1')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">查勘退单</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
				<c:if test="${resource2.resourceType == 1 && resource2.resourceId == '49533'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList-4" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=-4')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">评估退单</label>
										</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
				<c:if test="${resource2.resourceType == 1 && resource2.resourceId == '49533'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList6" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=6')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">审核待沟通</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
			    <c:if test="${resource2.resourceType == 1 && resource2.resourceId == '47545'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList1" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=1')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">查勘待约单</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
			    <c:if test="${resource2.resourceType == 1 && resource2.resourceId == '47545'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList2" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}/bpm/order_list_2_3.jsp?orderState=2')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">约单待查勘</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
				<c:if test="${resource2.resourceType == 1 && resource2.resourceId == '65810'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList3" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=3')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">${resource2.resourceName}</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
				<c:if test="${resource2.resourceType == 1 && resource2.resourceId == '47206'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList4" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=4')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">${resource2.resourceName}</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
				<c:if test="${resource2.resourceType == 1 && resource2.resourceId == '09979'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList5" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=5')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">${resource2.resourceName}</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
				<c:if test="${resource2.resourceType == 1 && resource2.resourceId == '95393'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList7" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=7')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">${resource2.resourceName}</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
				<c:if test="${resource2.resourceType == 1 && resource2.resourceId == '12528'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList8" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=8')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">${resource2.resourceName}</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
				<c:if test="${resource2.resourceType == 1 && resource2.resourceId == '94796'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList9" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=9')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">${resource2.resourceName}</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
				<c:if test="${resource2.resourceType == 1 && resource2.resourceId == '41252'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList10" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=10')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">${resource2.resourceName}</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
				<c:if test="${resource2.resourceType == 1 && resource2.resourceId == '80188'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList11" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=11')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">${resource2.resourceName}</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
				<c:if test="${resource2.resourceType == 1 && resource2.resourceId == '80188'}">
					<td style="height: 200px; vertical-align: top;">
						<div class="tabs tabs-style-circlefill" style="border: hidden">
							<nav>
								<ul style="height: 120px;">
									<li>
										<a href="javascript:void(0)">
											<span id="orderList12" onclick="addTab(${resource2.resourceId}, '${resource2.resourceName}', '${ctx}${resource2.resourceUrl}?orderState=11')">0</span>
										</a>
									</li>
								</ul>
								<label style="font-size: 18px;">已快递</label>
							</nav>
						</div>
					</td>
					<c:set value="${tdNum + 1}" var="tdNum" />
				</c:if>
				<c:if test="${tdNum % 4 == 0}">
		</tr>
		<tr>
				</c:if>
				</c:forEach>
				</c:if>
				</c:forEach>
			</c:if>
			<td style="height: 200px; vertical-align: top;">
				<div class="tabs tabs-style-circlefill" style="border: hidden">
					<nav>
						<ul style="height: 120px;">
							<li><a href="javascript:void(0)"><span id="orderList">0</span></a></li>
						</ul>
						<label style="font-size: 18px;">全部</label>
					</nav>
				</div>
			</td>
		</tr>
	</table>
</section>
<script>
	selectOrderStateCount();
	function selectOrderStateCount() {
		var order = new Order();
		order.manageUserId = "${userId}";
		order.surveyUserId = "${userId}";
		order.valuateUserId = "${userId}";
		order.checkUserId = "${userId}";
		OrderService.selectOrderStateCount(order, function (list) {
			if (list.length > 0) {
				var total = 0;
				for (var i = 0; i < list.length; i++) {
					var orderCount = list[i];
					var span = $("orderList" + orderCount.orderState);
					if (span != null) {
						span.innerText = orderCount.orderCount;
                        total += orderCount.orderCount;
					}
				}
                dwr.util.setValue("orderList", total);
            }
		});
	}
</script>


